/**
 * author: wancheng
 * date: 2018/08/5
 * des: 码表管理-客户申请
 */
import request from '@/utils/request'

export function getList(params) {
  return request({
    url: '/hrcustomers/findAll',
    method: 'get',
    params: params

  })
}



/**
 * 新增保存
 * @param {*data} data
 */
export function addCustomer(data) {
  return request({
    url: '/hrcustomers/insert',
    method: 'post',
    data
  })
}

/**
 * 编辑保存
 * @param {*data} data
 */
export function editCustomer(data) {
  return request({
    url: '/hrcustomers/update',
    method: 'put',
    data
  })
}

/**
 * 详情页面
 */
export function findDetail(intvId) {
  return request({
    url: '/hrcustomers/find/' + intvId,
    method: 'get'

  })
}

/**
 * 删除
 */
export function deleteItem(id) {
  return request({
    url: '/hrcustomers/delete/' + id,
    method: 'delete'

  })
}

